use "/home/scott/Dropbox/Florence_Paper/replication/data/family_sorts.dta", clear

tsset name scrut


reg chosen l.chosen, cluster(scrut), if scrut > 2

eststo a1

reg chosen l2.chosen, cluster(scrut), if scrut > 3

eststo a2

reg chosen l3.chosen, cluster(scrut), if scrut > 4

eststo a3

reg chosen l4.chosen, cluster(scrut), if scrut > 5

eststo a4

reg chosen l5.chosen, cluster(scrut), if scrut > 6

eststo a5



estout a1 a2 a3 a4 a5, cells(b(star fmt(5)) se(par fmt(5))) style(tex) stats(r2)  starlevels(* 0.10 ** 0.05 *** 0.01)




gen chosen_binary = 0

replace chosen_binary =1 if chosen >0



reg chosen_binary l.chosen_binary, cluster(scrut), if scrut > 2

eststo b1

reg chosen_binary l2.chosen_binary, cluster(scrut), if scrut > 3

eststo b2

reg chosen_binary l3.chosen_binary, cluster(scrut), if scrut > 4

eststo b3

reg chosen_binary l4.chosen_binary, cluster(scrut), if scrut > 5

eststo b4

reg chosen_binary l5.chosen_binary, cluster(scrut), if scrut > 6

eststo b5


estout b1 b2 b3 b4 b5, cells(b(star fmt(5)) se(par fmt(5))) style(tex) stats(N r2)  starlevels(* 0.10 ** 0.05 *** 0.01)


